void deleteNode(struct ListNode* node) {
    struct ListNode* temp = node->next;
    while (temp->next)
    {
        node->val = temp->val;
        node = node->next;
        temp = temp->next;
    }
    node->val = temp->val;
    node->next = NULL;
}